package cn.wolfcode.luowowo.article.mapper;

import cn.wolfcode.luowowo.article.domain.Ask;
import cn.wolfcode.luowowo.article.query.AskQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AskMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Ask record);

    Ask selectByPrimaryKey(Long id);

    List<Ask> selectAll();

    int updateByPrimaryKey(Ask record);

    List<Ask> selectForQuery(AskQuery qo);

    void saveByAidOrTid(@Param("aid") Long id, @Param("tid") Long id1);
}